#ng  dag version 
#now runing

filename=test-dag.log
dag_time=test-dag-time.log

rm $filename
rm $dag_time
touch $filename
touch $dag_time
make reuse_1
for p in 2 4 8 16 32 64
do
  for num in {1..5}
  do
    echo "dag runing, T=100 -Dthread_num=$p number=$num " 
    echo "dag runing, T=100 -Dthread_num=$p number=$num" >> $filename
#    srun -b -m 1 -p host  -N 1 -n $p -s 4096  -K 256 ./3d7p_mmem $p 100 >> $filename
   bsub -I  -p -q q_sw_expr -b -share_size 4096 -N 1 -cgsp 64 ./3d7p_reuse_1_trans $p 100  >>$filename
  done
done
grep -E 'dag runing|exec count :' $filename>>$dag_time
